<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link type="text/css" href="${request.contextPath}/css/alerts/jquery.alerts.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/common.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/main.css" rel="stylesheet" />
<!--引入jquery-->
<script type="text/javascript" src="${request.contextPath}/js/jquery.alerts.js"></script>
<script type="text/javascript">
	function checkForm()
	{	
		if($('#tname').val()==null || $('#tname').val()=='')
		{
			jAlert("must input name");
			return false;
		}
		else
			return true;
	}
</script>
</head>
<body>
<div class="portlet collapsible" >
		<div class="pageheader">修改教师状态类型</div><hr>
		<div class="portlet-content">
			<s:if test="hasFieldErrors()">
				<div class="fielderror">
					<s:fielderror></s:fielderror>
				</div>
			</s:if>
			<s:if test="hasActionErrors()">
				<div class="actionerror">
					<s:actionerror/>
				</div>
			</s:if>
			<s:form method="post" action="editSave" namespace="/TeacherType">
			<div>
			<input type="hidden" name="tid" value="${st.tid }"></input>
			<table class="InfoTable" >
				<tr>
					<td>类型名称：</td>
					<td><input type="text" name="tname" id="tname" value="${st.tname }"></td>
				</tr>
				<tr>
					<td>类型描述：</td>
					<td>
						<input type="text" name="tdes" id="tdes" value="${st.tdes }">
					</td>
				</tr>
			</table>
			</div>
			<div class="functionButton">
				<s:submit cssClass="submitButton" value='%{getText("PageAction.Ok")}' onclick="return checkForm()"></s:submit>
				<input type="button" class="normalButton" value="<s:text name="PageAction.ReturnToList"/>" onclick="javascript:window.location.href='list.action'"/>
			</div>
			</s:form>
		</div>
</div>
</body>
</html>